package com.yuyou.fn.provider.impl;

import com.yuyou.fn.api.MessageService;
import com.yuyou.fn.common.service.ISmsService;

import javax.annotation.Resource;

public class ExposeMessageServiceImpl implements MessageService {

    @Resource
    private ISmsService smsService ;

    @Override
    public boolean sendSmsCode(String phoneNo) {
        return smsService.sendCode(phoneNo);
    }

    @Override
    public boolean validSmsCode(String phoneNo, String code) {
        return smsService.validate(phoneNo,code);
    }
}
